function GetLog_Subscribe() {
	var myData = [
			['1', '订阅1',"启动", "订阅11", '张三', "年报|季报", 		   'zhangsan@hotmail.com','13312562012'],
			['2', '订阅1',"启动", "订阅11", '张三', "年报|季报", 		   'zhangsan@hotmail.com','13312562012'],
			['3', '订阅1',"启动", "订阅11", '张三', "年报|季报", 		   'zhangsan@hotmail.com','13312562012'],
			['4', '订阅1',"启动", "订阅11", '张三', "年报|季报", 		   'zhangsan@hotmail.com','13312562012'],
			['5', '订阅1',"启动", "订阅11", '张三', "年报|季报", 		   'zhangsan@hotmail.com','13312562012'],
			['6', '订阅1',"启动", "订阅11", '张三', "年报|季报", 		   'zhangsan@hotmail.com','13312562012']
		];                                                                        
	

    // shared reader
    var reader = new Ext.data.ArrayReader({}, [
       			{
							name : 'id'
						}, {
							name : 'name'
						}, {
							name : 'status'
						}, {
							name : 'desc'
						}, {
							name : 'user'
						}, {
							name : 'context'
						}, {
							name : 'email'
						}, {
							name : 'tel'
						}
    ]);


    var store = new Ext.data.GroupingStore({
            reader: reader,
            data: myData,
            sortInfo:{field: 'id', direction: "ASC"}
        });



	var sm = new Ext.grid.CheckboxSelectionModel();
	var grid = new Ext.grid.GridPanel({
				store : store,
				columns : [sm, {
							id : 'id',
							header : 'id',
							width : 10,
							sortable : true,
							dataIndex : 'id',
							hidden : true
						}, {
							header : '名称',
							width : 100,
							sortable : true,
							dataIndex : 'name'
						}, {
							header : '状态',
							width : 70,
							sortable : true,
							dataIndex : 'status'
						}, {
							header : '描述',
							width : 70,
							sortable : true,
							dataIndex : 'desc'
						}, {
							header : '订阅人',
							width : 70,
							sortable : true,
							dataIndex : 'user'
						}, {
							header : '订阅内容',
							width : 100,
							sortable : true,
							dataIndex : 'context'
						}, {
							header : '邮件',
							width : 100,
							sortable : true,
							dataIndex : 'email'
						}, {
							header : '短信',
							width : 100,
							sortable : true,
							dataIndex : 'tel'
						}],
				sm : sm,

				tbar : [{
							text : '添加',
							tooltip : '添加',
							iconCls : 'add',
							handler : function() {							
								EditLogSubscribeWindows();
							}
						}, '-', {
							text : '修改',
							tooltip : '修改',
							iconCls : 'modify',
							handler : function() {							
								EditLogSubscribeWindows();
							}
						}, '-', {
							text : '删除',
							tooltip : '删除',
							iconCls : 'delete',
							ref : '../removeBtn',
							disabled : true,
							handler : function() {
								var s = grid.getSelectionModel().getSelections();
								for (var i = 0; r = s[i]; i++) {
									store.remove(r);
								}
							}
						}, '-', {
							text : '刷新',
							tooltip : '刷新',
							iconCls : 'refresh',
							handler : function() {							
								store.loadData(myData);
							}
						}],
				
				stripeRows : true,
				autoExpandColumn : 'id',
				stateful : true,
				stateId : 'grid'
			});
	grid.getSelectionModel().on('selectionchange', function(sm) {
				grid.removeBtn.setDisabled(sm.getCount() < 1);
			});

	function SearchReturn(data){
		var jsondata = Ext.util.JSON.decode(data);
		
	}
	function reflashgriad(page) {
	}
	
	return grid;
}

function EditLogSubscribeWindows(SearchReturn){

	var myData1 = [
					['1', '启用'],
					['2', '禁用']
				 ];        
var MyField = new Ext.form.TextField({ 
    name: 'my_field', 
    flex: 1 
}); 

	var AddWindow = new Ext.form.FormPanel({
				frame : true,
				layout : 'form',
				region : 'center',
				xtype : 'fieldset',
				bodyStyle : 'padding:10px;',
				items : [
							 {
									xtype : 'combo',
									name : 'status',
									id : 'status',
									fieldLabel: '状态',
									store : new Ext.data.ArrayStore({
												fields : ['id', 'name'],
												data : myData1
											}),
									valueField : 'id',
									displayField : 'name',
									typeAhead : true,
									mode : 'local',
									triggerAction : 'all',
									editable : false,
									value:'1'
							
		        	},{
								xtype : 'textfield',
								name : '名称',
								fieldLabel : '名称',
								anchor : '100%'
							},{
								xtype : 'textarea',
								name : 'desc',
								fieldLabel : '描述',
								anchor : '100%'
							},{
										xtype: 'checkboxgroup',
										itemCls: 'x-check-group-alt',
										fieldLabel: '订阅内容',
										columns: 4,
										id:'db',
										name:'db',
										items: [
										{boxLabel: '年报', name: 'mysql',id:'mysql'},
										{boxLabel: '季报', name: 'mssql',id:'mssql'},
										{boxLabel: '月报', name: 'oracle',id:'oracle'},
										{boxLabel: '周报', name: 'informix',id:'informix'},
										{boxLabel: '日报', name: 'db2',id:'db2'}
										
										]
							},{
								xtype : 'textfield',
								name : '订阅人',
								fieldLabel : '订阅人',
								anchor : '100%'
							},{
								xtype : 'textfield',
								name : '邮件',
								fieldLabel : '邮件',
								anchor : '100%'
							},{
								xtype : 'textfield',
								name : '短信',
								fieldLabel : '短信',
								anchor : '100%'
							}
						]

			});

	var addWindows = new Ext.Window({
				layout : 'border',
				width : 500,
				height : 350,
				title : "添加",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'search',
				items : [AddWindow],
				plain : true
			});
	addWindows.addButton({
				text : "确 定",
				handler : function() {
					
					addWindows.close();
				}
			});
	addWindows.addButton({
				text : '取 消',
				handler : function() {
					addWindows.close();
				}
			});
	addWindows.show();
}